package cn.itsource.ymcc.client;

import cn.itsource.ymcc.result.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "service-media",fallbackFactory = MediaClientFallbackFactory.class)
public interface MediaClient {

    /**
     * 传入课程id将它的所有章节的所有视频查询出来
     * @param courseId
     * @return
     */
    @GetMapping("/mediaFile/loadAllByCourseId/{courseId}")
    JsonResult loadAllByCourseId(@PathVariable("courseId")Long courseId);

}
